package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 库存盘点记录表
 * @author Jack
 *
 */
@Entity
@Table(name="TBL_INVENTORY_CHECK")
public class InventoryCheck implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	/**库存id*/
	private String pId;
	/**仓库编号*/
	private String whNo;
	/**供应商编号*/
	private String supNo;
	/**货品编号*/
	private String prodNo;
	/**商品编号*/
	private String commoNo;
	/**商品数量*/
	private Long productTotal;
	/**可用数量*/
	private Long qualifiedQuantity;
	/**创建时间*/
	private String createTime;
	/**删除标志*/
	private int deleteFlage;
	/**系统商品数量*/
	private Long sysProduct;
	/**良品数量*/
	private Long yieldProduct;
	/**系统良品数量*/
	private Long sysYieldProduct;
	/**次品数量*/
	private Long defectProduct;
	/**系统次品数*/
	private Long sysDefectProduct;
	/**是否系统数据*/
	private Integer isSysData;
	
	public InventoryCheck(){}
	
	public InventoryCheck(String id, String pId, String whNo, String supNo, String prodNo, String commoNo,
			Long productTotal, Long qualifiedQuantity, String createTime, int deleteFlage, Long sysProduct,
			Long yieldProduct, Long sysYieldProduct, Long defectProduct, Long sysDefectProduct, Integer isSysData) {
		super();
		this.id = id;
		this.pId = pId;
		this.whNo = whNo;
		this.supNo = supNo;
		this.prodNo = prodNo;
		this.commoNo = commoNo;
		this.productTotal = productTotal;
		this.qualifiedQuantity = qualifiedQuantity;
		this.createTime = createTime;
		this.deleteFlage = deleteFlage;
		this.sysProduct = sysProduct;
		this.yieldProduct = yieldProduct;
		this.sysYieldProduct = sysYieldProduct;
		this.defectProduct = defectProduct;
		this.sysDefectProduct = sysDefectProduct;
		this.isSysData = isSysData;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getWhNo() {
		return whNo;
	}
	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}
	public String getSupNo() {
		return supNo;
	}
	public void setSupNo(String supNo) {
		this.supNo = supNo;
	}
	public String getProdNo() {
		return prodNo;
	}
	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}
	public String getCommoNo() {
		return commoNo;
	}
	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}
	public Long getProductTotal() {
		return productTotal;
	}
	public void setProductTotal(Long productTotal) {
		this.productTotal = productTotal;
	}
	public Long getQualifiedQuantity() {
		return qualifiedQuantity;
	}
	public void setQualifiedQuantity(Long qualifiedQuantity) {
		this.qualifiedQuantity = qualifiedQuantity;
	}
	public String getpId() {
		return pId;
	}
	public void setpId(String pId) {
		this.pId = pId;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public int getDeleteFlage() {
		return deleteFlage;
	}
	public void setDeleteFlage(int deleteFlage) {
		this.deleteFlage = deleteFlage;
	}

	public Long getSysProduct() {
		return sysProduct;
	}

	public void setSysProduct(Long sysProduct) {
		this.sysProduct = sysProduct;
	}

	public Long getYieldProduct() {
		return yieldProduct;
	}

	public void setYieldProduct(Long yieldProduct) {
		this.yieldProduct = yieldProduct;
	}

	public Long getSysYieldProduct() {
		return sysYieldProduct;
	}

	public void setSysYieldProduct(Long sysYieldProduct) {
		this.sysYieldProduct = sysYieldProduct;
	}

	public Long getDefectProduct() {
		return defectProduct;
	}

	public void setDefectProduct(Long defectProduct) {
		this.defectProduct = defectProduct;
	}

	public Long getSysDefectProduct() {
		return sysDefectProduct;
	}

	public void setSysDefectProduct(Long sysDefectProduct) {
		this.sysDefectProduct = sysDefectProduct;
	}

	public Integer getIsSysData() {
		return isSysData;
	}

	public void setIsSysData(Integer isSysData) {
		this.isSysData = isSysData;
	}
	
}